import { articles } from '@/api/list'
export default {
  namespaced: true,
  state: {
    xxx: '456',
    list: []
  },
  mutations: {
    setList (state, value) {
      state.list = value
    }
  },
  actions: {
    async getList (ctx, id) {
      const res = await articles(id)
      ctx.commit('setList', res.data.results)
      console.log('列表数据', res)
    }
  },
  getters: {}
}
